package com.admin.boot.modules.online.service.impl;

import com.admin.boot.modules.online.entity.OnlineTableField;
import com.admin.boot.modules.online.mapper.OnlineTableFieldMapper;
import com.admin.boot.modules.online.service.IOnlineTableFieldService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (OnlineTableField)表服务实现类
 *
 * @author makejava
 * @since 2024-01-10 09:37:15
 */
@Service
public class OnlineTableFieldServiceImpl extends ServiceImpl<OnlineTableFieldMapper, OnlineTableField> implements IOnlineTableFieldService {

    @Override
    public List<OnlineTableField> getByTableId(String tableId) {
        LambdaQueryWrapper<OnlineTableField> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(OnlineTableField::getTableId,tableId);
        List<OnlineTableField> onlineTableFields = baseMapper.selectList(queryWrapper);
        return onlineTableFields;
    }
}

